← Back to issue list

override-prime ignore failure on rebuild

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#2002538
Type
issue
State
open
Author
~gbeuzeboc
Labels
Created
2023-01-11 13:46:59.275948+00:00
Updated
2023-01-11 13:50:30.313362+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When the command executed in override-prime fails, relaunching the snap build skip the prime step and mark it as already ran and create the .snap file. The expected behaviour is that it re-run the prime step. To reproduce, you need this snapcraft.yaml ``` name: my-snap-name base: core20 version: '0.1' summary: Single-line elevator pitch description: |   This is my-snap's description. grade: devel confinement: devmode parts:   my-part:     plugin: nil     override-prime: |       this_command_does_not_exist ``` Call snapcraft, it fails (expected) Call snapcraft again, it succeeds (not expected) To properly re-execute the prime step the only two solutions are: clean the build or change the override-prime script. snapd version: 2.58 snapcraft version: 7.2.9

Evaluation history

No evaluation history available.